﻿using System;

public class EditJobUI : EditScrollSelectUI
{
    public InputUI inputObj;


    public override void Start()
    {
        base.Start();
        if (inputObj)
        {
            inputObj.gameObject.SetActive(false);
            inputObj.onInputSubmit = this.OnJobInput;
        }
    }

    private void OnJobInput(string value)
    {
        this.onEditEnd?.Invoke(0,value);
    }

    private void OnClickInput()
    {
        if (inputObj)
            inputObj.gameObject.SetActive(true);
    }
}
